<?php
$this->breadcrumbs=array(
	'Notes',
);

$this->menu=array(
	array('Create Note', array('create'))
);
?>

<h1>Your Notes</h1>

<?php echo Html::link(Yii::t('yii','Create'), array('/note/create')); ?>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>

<script type="text/javascript">
$('.note_start').click(function() {
var url = "/note/program/id/"+$(this).attr('name');
var program = $(this).attr('name');
   $.get(url, function(data) {

    $("#container").append(data);

     $("#note"+program).buildContainers({
                containment:"#container",
            elementsPath:"/css/elements/"
                 });
    $("#note"+program).mb_open();
   });


});
</script>
